package cn.itcast.bos.dao.base;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import cn.itcast.bos.domain.base.Area;

public interface IAreaRepository extends JpaRepository<Area, String>, JpaSpecificationExecutor<Area> {
    // 根据省查询
    List<Area> findByProvince(String province);

    // 持久化数据
    Area findByProvinceAndCityAndDistrict(String province, String city, String district);

}
